 <template>
  <div>
    <el-card class="box-card">
      <template #header>
        <span class="link">
          <router-link to="/">首页</router-link>
        </span>
        <span class="link">
          <router-link to="/news">新闻</router-link>
        </span>
        <span class="link">
          <router-link to="/videos">视频</router-link>
        </span>
        <span class="link">
          <router-link to="/books">图书</router-link>
        </span>

        <span class="link">
          <router-link to="/book/1">动态组件图书1</router-link>
        </span>
      </template>
      <div>
        <router-view></router-view>
      </div>
    </el-card>
  </div>
</template>



<script>
//import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  components: {
    //HelloWorld
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
